<template>
  <div class="data-board-wrap">
    <div class="left">
      <div class="top">
        <mycard>
          <template #title>
            <span>预警</span>
          </template>
          <p v-for="o in 4" :key="o" class="text item">{{ 'List item ' + o }}</p>
        </mycard>
      </div>
      <div class="middle">
        <div class="device">
          <mycard>
            <template #title>
              <span>设备维养调度</span>
            </template>
            <p v-for="o in 4" :key="o" class="text item">{{ 'List item ' + o }}</p>
          </mycard>
        </div>
        <div class="tech">
          <mycard>
            <template #title>
              <span>工艺养护调度</span>
            </template>
            <p v-for="o in 4" :key="o" class="text item">{{ 'List item ' + o }}</p>
          </mycard>
        </div>
      </div>
      <div class="bottom">
        <mycard>
          <template #title>
            <span>调度信息</span>
          </template>
          <p v-for="o in 4" :key="o" class="text item">{{ 'List item ' + o }}</p>
        </mycard>
      </div>
    </div>
    <div class="right">
      <div class="r-top">
        <mycard>
          <template #title>
            <span>告警</span>
          </template>
          <template #more>
            <el-text type="info">查看更多</el-text>
          </template>
          <p v-for="o in 4" :key="o" class="text item">{{ 'List item ' + o }}</p>
        </mycard>
      </div>
      <div class="r-bottom">
        <mycard>
          <template #title>
            <span>网络自控调度</span>
          </template>
          <p v-for="o in 4" :key="o" class="text item">{{ 'List item ' + o }}</p>
        </mycard>
      </div>
    </div>
  </div>
</template>

<script setup>
import mycard from './components/mycard.vue'

</script>

<style lang="scss" scoped>
.data-board-wrap {
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
  padding: 4px;
  .left {
    width: 1180px;
    height: 100%;
    display: flex;
    flex-direction: column;
    .top {
      width: 100%;
      height: 240px;
    }
    .middle {
      margin-top: 20px;
      width: 100%;
      height: 294px;
      display: flex;
      .device {
        flex: 1;
      }
      .tech {
        margin-left: 20px;
        flex: 1;
      }
    }
    .bottom {
      margin-top: 20px;
      width: 100%;
      height: 356px;
    }
  }
  .right {
    margin-left: 20px;
    width: 460px;
    height: 100%;
    display: flex;
    flex-direction: column;
    .r-top {
      width: 100%;
      height: 552px;
    }
    .r-bottom {
      margin-top: 20px;
      width: 100%;
      height: 356px;
    }
  }
 
}
</style>